package com.usoft2;

import akka.japi.Creator;

/**
 * Created by liyanxin on 2015/1/12.
 */
public class MyActorCreator implements Creator<MyActor> {
    private int x;
    private int y;

    public MyActorCreator(int x, int y) {
        this.x = x;
        this.y = y;
    }

    @Override
    public MyActor create() throws Exception {
        return new MyActor(x, y);
    }
}
